-- GENERATED SPELL FOR [Darkcrest Taskmaster] --


function spell0_18086(pUnit, Event) --@Curse of Nazjatar,n/a--
pUnit:FullCastSpellOnTarget(34812,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18086', 4254, 1)
end

function spell1_18086(pUnit, Event) --@Tail Lash,n/a--
pUnit:FullCastSpellOnTarget(34811,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18086', 601, 1)
end

function Sorts_18086(pUnit, Event)
local choix_sorts_18086 = math.random(0, 1)
if choix_sorts_18086 == 0 then
pUnit:RegisterEvent('spell0_18086', 1, 1)
end
if choix_sorts_18086 == 1 then
pUnit:RegisterEvent('spell1_18086', 1, 1)
end
end

function mob18086_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18086', math.random(1500, 3000), 1)
end

function mob18086_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18086_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18086_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18086, 1, 'mob18086_Action')
RegisterUnitEvent(18086, 2, 'mob18086_Leave')
RegisterUnitEvent(18086, 3, 'mob18086_Kill')
RegisterUnitEvent(18086, 4, 'mob18086_Die')
